//
//	uploadmineModel.swift
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport

import Foundation 
import ObjectMapper


class uploadmineModel : NSObject, NSCoding, Mappable{

	var attachId : Int?
	var domain : String?
	var link : String?
	var name : String?
	var originalName : String?


	class func newInstance(map: Map) -> Mappable?{
		return uploadmineModel()
	}
	required init?(map: Map){}
	private override init(){}

	func mapping(map: Map)
	{
		attachId <- map["attachId"]
		domain <- map["domain"]
		link <- map["link"]
		name <- map["name"]
		originalName <- map["originalName"]
		
	}

    /**
    * NSCoding required initializer.
    * Fills the data from the passed decoder
    */
    @objc required init(coder aDecoder: NSCoder)
	{
         attachId = aDecoder.decodeObject(forKey: "attachId") as? Int
         domain = aDecoder.decodeObject(forKey: "domain") as? String
         link = aDecoder.decodeObject(forKey: "link") as? String
         name = aDecoder.decodeObject(forKey: "name") as? String
         originalName = aDecoder.decodeObject(forKey: "originalName") as? String

	}

    /**
    * NSCoding required method.
    * Encodes mode properties into the decoder
    */
    @objc func encode(with aCoder: NSCoder)
	{
		if attachId != nil{
			aCoder.encode(attachId, forKey: "attachId")
		}
		if domain != nil{
			aCoder.encode(domain, forKey: "domain")
		}
		if link != nil{
			aCoder.encode(link, forKey: "link")
		}
		if name != nil{
			aCoder.encode(name, forKey: "name")
		}
		if originalName != nil{
			aCoder.encode(originalName, forKey: "originalName")
		}

	}

}